<!--
  To change this template, choose Tools | Templates
  and open the template in the editor.
-->

<%@ page contentType="text/html;charset=UTF-8" %>

<html>
  <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <meta name="layout" content="main" />
        <title>Administration</title>
    </head>
  <body>
    <div class="body" style="width:98%">
      
    
      <h1>Administration</h1>
    <g:if test="${flash.message}">
    <div class="message">${flash.message}</div>
    </g:if>

      <div style="float:left; width:100%">

      <div style="float:left">
    <img src="${resource(dir:'images/skin',file:'coins.png')}" alt="Coins" class="adminPic" />
        <h2>Budget</h2>
    <div class="adminBox">
    <% def a = session.access
    a.refresh()
    %>
    <g:if test="${a.container.budgetLocked}">
      <b>Status:</b> ${Inter.printOut('Budget Locked',session.language)}
      <img src="${resource(dir:'images/skin',file:'lock.png')}" alt="Unlock" style="vertical-align:text-bottom;" />
      <g:form action="unlock" method="post">
        <input type="hidden" name="containerId" id="containerId" value="${a.container.id}" />
        
        <input type="submit" value="${Inter.printOut('Unlock Budget',session.language)}" style="margin-top:10px"/>
      </g:form>
    </g:if>
    <g:else>
      <b>Status:</b> ${Inter.printOut('Budget Unlocked',session.language)}
      <img src="${resource(dir:'images/skin',file:'unlock.png')}" alt="Unlock" style="vertical-align:text-bottom;" />
      <g:form action="lock" method="post">
        <input type="hidden" name="containerId" id="containerId" value="${a.container.id}" />
        
        <input type="submit" value="${Inter.printOut('Lock Budget',session.language)}" style="margin-top:10px"/>
      </g:form>
    </g:else>
    </div>
    </div>

    <div style="float:left">
    <img src="${resource(dir:'images/skin',file:'access.png')}" alt="Coins" class="adminPic" />
      <h2>${Inter.printOut('Manage Access',session.language)}</h2>
    <div class="adminBox">
      <div class="adminButtons" style="width:100px; text-align:center">
      <g:link controller="access" action="list">${Inter.printOut('List Access',session.language)}</g:link>
      </div>
      <div class="adminButtons" style="width:100px; text-align:center">
    <g:link controller="access" action="create">${Inter.printOut('New Access',session.language)}</g:link>
      </div>
    </div>
    </div>

        <div style="float:left">
          <img src="${resource(dir:'images/skin',file:'areas.png')}" alt="Areas" class="adminPic" />
    <h2>${Inter.printOut('Manage Areas',session.language)}</h2>
    <div class="adminBox">
    <div class="adminButtons" style="width:100px; text-align:center">
      <g:link controller="area" action="list">${Inter.printOut('List Areas',session.language)}</g:link>
    </div>
      <div class="adminButtons" style="width:100px; text-align:center">
    <g:link controller="area" action="create">${Inter.printOut('New Area',session.language)}</g:link>
      </div>
    </div>
        </div>

      </div>

      <div style="float:left; width:100%; margin-top:20px;">
  <div style="float:left">
    <img src="${resource(dir:'images/skin',file:'users.png')}" alt="Employees" class="adminPic" />
    <h2>${Inter.printOut('Manage Employees',session.language)}</h2>
    <div class="adminBox">
    <div class="adminButtons" style="width:100px; text-align:center">
      <g:link controller="employee" action="list">${Inter.printOut('List Employees',session.language)}</g:link>
    </div>
      <div class="adminButtons" style="width:100px; text-align:center">
    <g:link controller="employee" action="create">${Inter.printOut('New Employee',session.language)}</g:link>
      </div>
    </div>
        </div>

        <div style="float:left">
    <img src="${resource(dir:'images/skin',file:'folder_table.png')}" alt="Projects" class="adminPic" />
          <h2>${Inter.printOut('Manage Projects',session.language)}</h2>
    <div class="adminBox">
    <div class="adminButtons" style="width:100px; text-align:center">
      <g:link controller="project" action="list">${Inter.printOut('List Projects',session.language)}</g:link>
    </div>
      <div class="adminButtons" style="width:100px; text-align:center">
    <g:link controller="project" action="create">${Inter.printOut('New Project',session.language)}</g:link>
      </div>
    </div>
        </div>

         <div style="float:left">
           <img src="${resource(dir:'images/skin',file:'courses.png')}" alt="Coins" class="adminPic"/>
    <h2>${Inter.printOut('Manage Courses',session.language)}</h2>
    <div class="adminBox">
    <div class="adminButtons" style="width:100px; text-align:center">
      <g:link controller="course" action="list">${Inter.printOut('List Courses',session.language)}</g:link>
    </div>
      <div class="adminButtons" style="width:100px; text-align:center">
    <g:link controller="course" action="create">${Inter.printOut('New Course',session.language)}</g:link>
      </div>
    </div>
        </div>

      </div>


    </div>
  </body>
</html>
